const http = require('http')

const LISTEN_PROT = 80

const server = http.createServer((req, res) => {
  console.log(`${req.method} ${req.headers['x-forwarded-for']} ${req.url}`)
  res.end()
})

server.listen(LISTEN_PROT, () => {
  console.log(`server is running on prot ${LISTEN_PROT}`)
})

